from django.urls import path
from . import views

# 注册子路由
urlpatterns =[
    # 添加订单 POST /api/v1.0/orders
    path('api/v1.0/orders', views.AddOrder.as_view()),
    # 接单,拒单  PUT /api/v1.0/orders/[int:order_id]/status
    path('api/v1.0/orders/<int:order_id>/status', views.AcceptOrder.as_view()),
    # 评价订单  PUT /api/v1.0/orders/[int:order_id]/comment
    path('api/v1.0/orders/<int:order_id>/comment', views.CommentOrder.as_view()),
]